package com.xbongbong.paas.pojo.dto;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import com.xbongbong.pro.formdata.pojo.SaasNeedRedundantAttrPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author: wufeng
 * @date: 2018/11/21 13:58
 * @desrcption: 流程数据
 */
@Getter
@Setter
@ToString
public class ProcessDataAddDTO extends BaseDTO {

    private static final long serialVersionUID = 4297447446119439183L;


    /**
     * 应用id
     */
    private Long appId;

    /**
     * 菜单id
     */
    private Long menuId;

    /**
     * 表单id
     */
    private Long formId;

    /**
     * 数据id
     */
    private Long formDataId;

    /**
     * 流程模板id
     */
    private Long templateId;

    /**
     * 流程任务id
     */
    private Long taskId;

    /**
     * 流程状态
     */
    private Integer flowStatus;

    /**
     * 数据
     */
    private JSONObject data;

    /**
     * 编号
     */
    private String serialNo;
    /**
     * 拥有者id
     */
    private String ownerId;
    /**
     * 部门id
     */
    private Long departmentId;

    private Integer saasMark;

    private Integer businessType;

    private Integer subBusinessType;
    @Getter(onMethod_ = {@QueryIgnore})
    private String creatorId;

    private Integer del;

    /**
     * 1.手动创建应收模式，2.开票产生应收模式，3.出库单产生应收模式 详见ModelTypeEnum
     */
    private Integer modelType;

    /**
     * saas所需的特殊传参pojo
     */
    private SaasNeedRedundantAttrPojo saasNeedRedundantAttrPoJo;
    /**
     * 是否是审批后置的数据
     */
    private Integer postPosition;

    /*
     * 线索转换客户操作，下面的是否要将销售线索的跟进记录自动带人客户按钮
     */
    private Integer isBringCustomer;
    private Long clueId;

    public ProcessDataAddDTO(){
        ownerId = "";
        del = 0;
        departmentId = 0L;
        formDataId = 0L;
    }
}
